Skip to contentSkip to conversation

exit() vs _exit()

DISCUSSION Ruediger Meier 2 participants 3 messages Jun 29, 2017 Util-Linux package

lore
Share & tools
lore
#0 lore raw

Hi,

I've noticed we have some exit() calls in the libs,

e.g. in exec_helper()

libmount/src/context_mount.c
libmount/src/context_umount.c

Is this really ok or shouldn't we use _exit() there?

cu,
Rudi

maintainer
#1 lore raw
Quoted 10 lines · Ruediger Meier

Hi,

I've noticed we have some exit() calls in the libs,

e.g. in exec_helper()

libmount/src/context_mount.c
libmount/src/context_umount.c

Is this really ok or shouldn't we use _exit() there?

I think _exit() is better in this case.

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com
maintainer
#2 lore raw
In reply to Ruediger Meier
Quoted 4 lines · Ruediger Meier

libmount/src/context_mount.c
libmount/src/context_umount.c

Is this really ok or shouldn't we use _exit() there?

Fixed, thanks.

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com