[Python-bugs-list] [ python-Feature Requests-661203 ] sigprocmask: None argument
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 03 Jan 2003 04:01:15 -0800
Feature Requests item #661203, was opened at 2003-01-02 17:38
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=661203&group_id=5470
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Pomraning (pilcrow)
>Assigned to: Michael Hudson (mwh)
Summary: sigprocmask: None argument
Initial Comment:
signal.sigprocmask ought allow a None argument instead
of a signal sequence:
a) cur_mask = signal.sigprocmask(any_but_SETMASK, [])
# sigprocmask(how, &empty_set, &cur_mask)
b) cur_mask = signal.sigprocmask(dummy, None)
# sigprocmask(dummy, NULL, &cur_mask)
"a" is slightly more work for the kernel, and permits
accidental SETMASKing. "b" avoids both, and is
comfortably analogous to the familiar, ugly C interface
(as opposed to, say, cur_mask = signal.sigprocmask()).
----------------------------------------------------------------------
>Comment By: Michael Hudson (mwh)
Date: 2003-01-03 12:01
Message:
Logged In: YES
user_id=6656
Sounds fair enough.
Should warn you that the sigmask stuff is currently not
being compiled owing to unpleasantly exciting x-platform
behaviour. I ought to do something about that, too.
What platform are you on?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=661203&group_id=5470