[Python-bugs-list] [ python-Feature Requests-661203 ] sigprocmask: None argument

noreply@sourceforge.net noreply@sourceforge.net
Thu, 02 Jan 2003 09:38:58 -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: Nobody/Anonymous (nobody)
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()).


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=661203&group_id=5470