Subject: bin/1755: sync(1) doesn't need to call exit(3)
To: None <gnats-bugs@gnats.netbsd.org>
From: Arne Henrik Juul <arnej@imf.unit.no>
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
>Last-Modified:
>Originator: Arne H. Juul
>Organization:
University of Trondheim, Norway
>Release: NetBSD-current as of Nov 11, 1995
>Environment:
System: NetBSD leon.imf.unit.no 1.1_ALPHA NetBSD 1.1_ALPHA (NIKITA) #1: Sat Nov 4 01:00:55 MET 1995 arnej@leon.imf.unit.no:/usr/src/sys/arch/i386/compile/NIKITA i386
>Description:
sync uses exit(3), which drags in large parts of the C
library. using _exit instead gives a much smaller binary.
>How-To-Repeat:
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
>Fix:
Replace exit with _exit in source code.
>Audit-Trail:
>Unformatted: