Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Dev

PEP 446: Open issues/questions

 

 

First page Previous page 1 2 Next page Last page  View All Python dev RSS feed   Index | Next | Previous | View Threaded


victor.stinner at gmail

Aug 2, 2013, 4:30 AM

Post #26 of 29 (29 views)
Permalink
Re: PEP 446: Open issues/questions [In reply to]

Is it possible to implement atfork on Windows?

A Python lock would be ignored by other C threads. It is unsafe if Python
is embedded.

Victor


shibturn at gmail

Aug 2, 2013, 5:07 AM

Post #27 of 29 (29 views)
Permalink
Re: PEP 446: Open issues/questions [In reply to]

On 02/08/2013 12:30pm, Victor Stinner wrote:
> Is it possible to implement atfork on Windows?

On Windows the patch does expose atfork.getlock() and uses it in
subprocess. (It should also modify os.spawn?(), os.startfile() etc.)
But atfork.atfork() is Unix only.

> A Python lock would be ignored by other C threads. It is unsafe if
> Python is embedded.

True.

--
Richard

_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com


solipsis at pitrou

Aug 2, 2013, 5:37 AM

Post #28 of 29 (30 views)
Permalink
Re: PEP 446: Open issues/questions [In reply to]

Le Fri, 2 Aug 2013 13:30:56 +0200,
Victor Stinner <victor.stinner [at] gmail> a écrit :
> Is it possible to implement atfork on Windows?
>
> A Python lock would be ignored by other C threads. It is unsafe if
> Python is embedded.

It is unsafe if Python is embedded *and* the embedding application uses
fork() + exec().

Regards

Antoine.


_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com


solipsis at pitrou

Aug 2, 2013, 5:38 AM

Post #29 of 29 (30 views)
Permalink
Re: PEP 446: Open issues/questions [In reply to]

Le Fri, 2 Aug 2013 02:27:43 +0200,
Victor Stinner <victor.stinner [at] gmail> a écrit :
> 2013/7/28 Antoine Pitrou <solipsis [at] pitrou>:
> >> (A) How should we support support where os.set_inheritable() is not
> >> supported? Can we announce that os.set_inheritable() is always
> >> available or not? Does such platform exist?
> >
> > FD_CLOEXEC is POSIX:
> > http://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html
>
> Ok, but this information does not help me. Does Python support
> non-POSIX platforms? (Windows has HANDLE_FLAG_INHERIT.)

Python works under POSIX and Windows. Not sure what else you are
thinking about :-)

Regards

Antoine.


_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com

First page Previous page 1 2 Next page Last page  View All Python dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.