* Printf / C / Signal / Re-Entrancy
@ 2000-08-07 4:00 moi_is_me
2000-08-22 4:00 ` moi_is_me
0 siblings, 1 reply; 5+ messages in thread
From: moi_is_me @ 2000-08-07 4:00 UTC (permalink / raw)
On most unix's, TRU64 + Solaris in particular, it seems that the
documentation says not to invoke printf, and like, whilst in a
signal handler.
If you potentially need to output data from a signal handler, for
example, real-time i/o completion, where the system is notifying you
that an IP connection has been established, what output methods
are available that are Thread/Signal Re-Entrant ?
TIA
Pierre
Sent via Deja.com http://www.deja.com/
Before you buy.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Printf / C / Signal / Re-Entrancy
2000-08-07 4:00 Printf / C / Signal / Re-Entrancy moi_is_me
@ 2000-08-22 4:00 ` moi_is_me
2000-08-22 4:00 ` Casper H.S. Dik - Network Security Engineer
0 siblings, 1 reply; 5+ messages in thread
From: moi_is_me @ 2000-08-22 4:00 UTC (permalink / raw)
On most unix's, TRU64 + Solaris in particular, it seems that the
documentation says not to invoke printf, and like, whilst in a
signal handler.
If you potentially need to output data from a signal handler, for
example, real-time i/o completion, where the system is notifying you
that an IP connection has been established, what output methods
are available that are Thread/Signal Re-Entrant ?
TIA
Pierre
Sent via Deja.com http://www.deja.com/
Before you buy.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Printf / C / Signal / Re-Entrancy
2000-08-22 4:00 ` moi_is_me
@ 2000-08-22 4:00 ` Casper H.S. Dik - Network Security Engineer
2000-09-02 2:23 ` Rocke Robertson
0 siblings, 1 reply; 5+ messages in thread
From: Casper H.S. Dik - Network Security Engineer @ 2000-08-22 4:00 UTC (permalink / raw)
[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]
moi_is_me <moi_is_me@my-deja.com> writes:
>On most unix's, TRU64 + Solaris in particular, it seems that the
>documentation says not to invoke printf, and like, whilst in a
>signal handler.
>If you potentially need to output data from a signal handler, for
>example, real-time i/o completion, where the system is notifying you
>that an IP connection has been established, what output methods
>are available that are Thread/Signal Re-Entrant ?
Plain old system calls (read/write etc).
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Printf / C / Signal / Re-Entrancy
2000-08-22 4:00 ` Casper H.S. Dik - Network Security Engineer
@ 2000-09-02 2:23 ` Rocke Robertson
2000-09-08 6:22 ` Tim Mooney
0 siblings, 1 reply; 5+ messages in thread
From: Rocke Robertson @ 2000-09-02 2:23 UTC (permalink / raw)
What about syslog() ? I've used this with no problems. Maybe it has
problems, but I haven't run into any obvious ones.
"Casper H.S. Dik - Network Security Engineer" wrote:
> [[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]
>
> moi_is_me <moi_is_me@my-deja.com> writes:
>
> >On most unix's, TRU64 + Solaris in particular, it seems that the
> >documentation says not to invoke printf, and like, whilst in a
> >signal handler.
>
> >If you potentially need to output data from a signal handler, for
> >example, real-time i/o completion, where the system is notifying you
> >that an IP connection has been established, what output methods
> >are available that are Thread/Signal Re-Entrant ?
>
> Plain old system calls (read/write etc).
>
> Casper
> --
> Expressed in this posting are my opinions. They are in no way related
> to opinions held by my employer, Sun Microsystems.
> Statements on Sun products included here are not gospel and may
> be fiction rather than truth.
--
==========================================
Rocke Robertson
PWGSC-GTIS-CPS
Voice (613) 748-4604
Fax (613) 748-4843
mailto:Rocker@tiger.pwgsc.gc.ca
==========================================
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Printf / C / Signal / Re-Entrancy
2000-09-02 2:23 ` Rocke Robertson
@ 2000-09-08 6:22 ` Tim Mooney
0 siblings, 0 replies; 5+ messages in thread
From: Tim Mooney @ 2000-09-08 6:22 UTC (permalink / raw)
In article <39B064B5.769627F0@tiger.pwgsc.gc.ca>,
Rocke Robertson <rocker@tiger.pwgsc.gc.ca> wrote:
> What about syslog() ? I've used this with no problems. Maybe it has
> problems, but I haven't run into any obvious ones.
It may not have bitten you yet, but it's not one of the "safe" functions
according to POSIX.1.
Tim
--
Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J1, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2000-09-08 6:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-07 4:00 Printf / C / Signal / Re-Entrancy moi_is_me
2000-08-22 4:00 ` moi_is_me
2000-08-22 4:00 ` Casper H.S. Dik - Network Security Engineer
2000-09-02 2:23 ` Rocke Robertson
2000-09-08 6:22 ` Tim Mooney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox