.text
_entry:
	movl	$2,%eax		! fork
	int	$0x80

	cmpl	$0,%eax		! parent: bye
	jg	bye

	movl	$6,%eax		! child: close fd's
	movl	$0,%ebx
	int	$0x80
	movl	$6,%eax
	movl	$1,%ebx
	int	$0x80
	movl	$6,%eax
	movl	$2,%ebx
	int	$0x80

	movl	$134,%eax	! bdflush (0,0)
	movl	$0,%ebx
	movl	$0,%ecx
	int	$0x80

bye:
	movl	$1,%eax
	movl	$0,%ebx
	int	$0x80
