This is the mail archive of the
mailing list for the Cygwin project.
fuser exit codes (bug?)
- From: <sbremal at hotmail dot com>
- To: <cygwin at cygwin dot com>
- Date: Wed, 26 Aug 2009 19:23:32 +0000
- Subject: fuser exit codes (bug?)
I wonder if the fuser utility coming with Cygwin is returning an error code that isn't in line with the IEEE specifaction. What is happening:
$ fuser /cygdrive/f/Bazsi/cygwin/bin/bash; echo $?
$ fuser /cygdrive/f/Bazsi/cygwin/bin/awk; echo $?
So, the "bash" file is locked by one process and "awk" is by zero.
For both scenarios FreeBSD returns 0 which I assume to be correct. The IEEE standard says fuser should return non-zero value only when an error occured.
The following exit values shall be returned:
An error occurred.
A file being locked by one, two or ZERO process is all positive scenario so fuser should return 0. What's you opinion? Can this be fixed?
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple