Erlang/OTP Forums

Author Message

<  Erlang patches mailing list  ~  Patch for erl shell (unix/ttsl_drv.c) SIGWINCH handling (R12

Guest
Posted: Wed Jan 02, 2008 5:06 pm Reply with quote
Guest
On Wed, 2 Jan 2008, Mikael Pettersson wrote:
>
> Calling ioctl() from a signal handler should work on any
> proper *NIX, including Linux/Solaris/*BSD/AIX.

No, it isn't listed as async signal safe by POSIX. See the table near the
bottom of
http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html

Tony.
--
f.a.n.finch <dot@dotat.at> http://dotat.at/
NORTH FITZROY SOLE: SOUTHEAST BECOMING CYCLONIC 5 TO 7, OCCASIONALLY GALE 8 IN
SOLE. VERY ROUGH OR HIGH. RAIN OR SHOWERS. MODERATE OR GOOD, OCCASIONALLY
POOR.
_______________________________________________
erlang-patches mailing list
erlang-patches@erlang.org
http://www.erlang.org/mailman/listinfo/erlang-patches
Post recived from mailinglist
Guest
Posted: Thu Jan 03, 2008 10:12 am Reply with quote
Guest
* Tony Finch:

> On Wed, 2 Jan 2008, Mikael Pettersson wrote:
>>
>> Calling ioctl() from a signal handler should work on any
>> proper *NIX, including Linux/Solaris/*BSD/AIX.
>
> No, it isn't listed as async signal safe by POSIX. See the table near the
> bottom of
> http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html

POSIX only describes the STREAMS ioctl, which is not implemented by
Linux (and probably not by the BSDs, either).
_______________________________________________
erlang-patches mailing list
erlang-patches@erlang.org
http://www.erlang.org/mailman/listinfo/erlang-patches
Post recived from mailinglist
Guest
Posted: Sat Jan 05, 2008 11:13 am Reply with quote
Guest
On Thu, 3 Jan 2008, Florian Weimer wrote:
>
> POSIX only describes the STREAMS ioctl, which is not implemented by
> Linux (and probably not by the BSDs, either).

The BSD and Solaris manuals list the syscalls that are async-signal-safe
and ioctl isn't one of them. Linux appears not to be sufficiently
carefully documented to say either way.

Tony.
--
f.a.n.finch <dot@dotat.at> http://dotat.at/
VIKING: SOUTHEAST 6 TO GALE 8, PERHAPS SEVERE GALE 9 LATER. ROUGH OR VERY
ROUGH, OCCASIONALLY HIGH IN SOUTHWEST LATER. WINTRY SHOWERS. GOOD.
_______________________________________________
erlang-patches mailing list
erlang-patches@erlang.org
http://www.erlang.org/mailman/listinfo/erlang-patches
Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum