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

SourceForge.net noreply@sourceforge.net
Mon, 07 Apr 2003 05:23:09 -0700


Feature Requests item #661203, was opened at 2003-01-02 17:38
Message generated for change (Comment added) made by mwh
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=661203&group_id=5470

Category: Python Library
Group: None
>Status: Closed
>Resolution: Out of Date
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-04-07 13:23

Message:
Logged In: YES 
user_id=6656

I've withdrawn the sigprocmask code from CVS, so this
feature request no longer applies.

Sorry.

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

Comment By: Michael Pomraning (pilcrow)
Date: 2003-01-06 14:28

Message:
Logged In: YES 
user_id=679184

linux 2.4; x86.

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

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