Subject: bin/1755: sync(1) doesn't need to call exit(3)
To: None <>
From: Arne Henrik Juul <>
List: netbsd-bugs
Date: 11/12/1995 15:52:08
>Number:         1755
>Category:       bin
>Synopsis:       sync(1) doesn't need to call exit(3)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 12 10:20:02 1995
>Originator:     Arne H. Juul
	University of Trondheim, Norway
>Release:        NetBSD-current as of Nov 11, 1995
System: NetBSD 1.1_ALPHA NetBSD 1.1_ALPHA (NIKITA) #1: Sat Nov 4 01:00:55 MET 1995 i386

	sync uses exit(3), which drags in large parts of the C
	library. using _exit instead gives a much smaller binary.
	Observe in /usr/src/bin/sync/sync.c, or ls -l /bin/sync (on i386):
	-r-xr-xr-x  1 bin  bin  36864 Nov  4 01:33 /bin/sync
	Replace exit with _exit in source code.