--- ph.s	2001-11-24 01:39:54.000000000 +0100
+++ ph2.s	2006-03-03 00:15:53.000000000 +0100
@@ -74,6 +74,8 @@
 	SYS_LISTEN = 4
 	SYS_ACCEPT = 5
 	INADDR_ANY = 0
+	NR_exit = 1
+	NR_fork = 2
 	NR_open = 5
 	NR_close = 6
 	NR_write = 4
@@ -93,6 +95,16 @@
 	
 	.global _start
 _start:	
+	movl $NR_fork, %eax
+	int $0x80
+	cmpl $0, %eax
+	je forked
+
+	movl $NR_exit, %eax
+	movl $0, %ebx
+	int $0x80
+
+forked:
 	movl $AF_INET, s_arg0		# s_fd = socket(AF_INET, ...);
 	movl $SOCK_STREAM, s_arg1
 	movl $0, s_arg2
