Mikhail Teterin wrote: > > Also, printf() allocates memory for floating point, so if that > > percentage is a floating point calculation, then you are in double > > trouble, since you are not allowed to call malloc() in a signal > > handler. > > That's interesting... I can modify it a bit, to round the percentage to > fit the %d if called as a signal handler. Thanks. Anything else? If setproctitle() calls malloc/strsave/etc., it is not safe to call in a signal handler. I'm not saying it does, I'm saying I haven't looked at the code in libc for the function, and you should, before using it in a signal handler... -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
- Re: proctitle progress reporting for dump(8) Arne Dag Fidjestøl
- Re: proctitle progress reporting for dump(8) Garrett Wollman
- Re: proctitle progress reporting for dump(8) Arne Dag Fidjestøl
- Re: proctitle progress reporting for dump(8) Mikhail Teterin
- Re: proctitle progress reporting for dump(8) Garrett Wollman
- Re: proctitle progress reporting for dump(8) Mikhail Teterin
- Re: proctitle progress reporting for dump(8) Terry Lambert
- Re: proctitle progress reporting for dump(8) Ruslan Ermilov
- Re: proctitle progress reporting for dump(8) Ruslan Ermilov
- Re: proctitle progress reporting for dump(8) Mikhail Teterin
- Re: proctitle progress reporting for dump(8) Terry Lambert
- Re: proctitle progress reporting for dump(8) Bruce Evans
- Re: proctitle progress reporting for dump(8) Mikhail Teterin
- Re: proctitle progress reporting for dump(8) Bruce Evans