blockdev applet proposal
Sergey Naumov
sknaumov at gmail.com
Sun Sep 5 17:07:01 UTC 2010
> Please put all things (help/config/applet/kbuild) into one file.
> See procps/pmap.c for an example how to do it.
Unfortunately there is no such a file in busybox-1.17.2
> What's the point in returning ERR_IOCTL from do_cmd() to main?
> You can instead simply call bb_perror_msg_and_die("ioctl failure")
> in do_cmd(). Same applies to some (all?) other ERR_foo constants.
Wanted to close file descriptor. But OK, when process exits it will be
closed automatically =)
Another reason - destinguishing of exit statuses, but may be I can use
bb_perror_msg() and then exit(ERR_foo);
More information about the busybox
mailing list