Hi,
is the _exit() function safe for a thread ?
my program use vfork() and then execve in a thread context.
The documentation mentions that the process has to call _exit() in case
of failure.
But this _exit() is really safe for the parent thread ?
Thanks in advance for the reply.
and I use freebsd v4.8.
On Thu, 27 Nov 2003, rmkml wrote:
> Date: Thu, 27 Nov 2003 20:20:04 +0100 (CET)
> From: rmkml <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: question about _exit() function
>
> Hi,
>
> is the _exit() function safe for a thread ?
>
vfork().
So, I try to understand what may cause the calling thread of vfork() to
freeze ...
Thanks a lot!
On Fri, 28 Nov 2003, Terry Lambert wrote:
> Date: Fri, 28 Nov 2003 04:46:31 -0800
> From: Terry Lambert <[EMAIL PROTECTED]>
> To: rmkml <[EMAIL PROTECTED]>
> Cc: [EM
Hi,
I've got a problem with signal handling and threads.
I've reproduced the problem in a simple code.
Description of program:
install a signal handler SIGINT.
create a thread that do nothing except waiting.
main thread use poll to wait forever [ poll(,,-1) ].
user has too crtl-C to interrupt
ED]>
> To: rmkml <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: problem with signal handling and threads (fbsd49R)
>
> On Thu, 8 Jan 2004, rmkml wrote:
>
> > Hi,
> >
> > I've got a problem with signal handling and threads.
> > I'
Hi
fopen() on a pipe blocks multi threated applications.
If pipe is not ready for reading, fopen blocks every thread until STREAM
is ready.
Is there a good reason for this ?
Regards
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.fr
I use fbsd v4.9 release.
On Fri, 23 Jan 2004, rmkml wrote:
> Date: Fri, 23 Jan 2004 18:37:55 +0100 (CET)
> From: rmkml <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: fopen() on a pipe blocks multi threated applications.
>
> Hi
>
> fopen() on a pipe bloc
Hi
fopen() on a pipe blocks multi threated applications.
If pipe is not ready for reading, fopen blocks every thread until STREAM
is ready.
Is there a good reason for this ?
I use fbsd v4.9 release.
Regards
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] ma
Hi,
I have Timeout during boot
before panic !
I used fbsd v4.9release, (2x250Go WD ATA100)
but if use v5.2R : OK no pb !
If I use 40Go on same Hardware : OK with 49
Possible Help me ?
Where is download last 4.9 boot floppy ?
Possible to increase the duration of initialization at the time of
Hi,
On this url :
ftp://current.FreeBSD.org/pub/FreeBSD/snapshots/i386/4.9-STABLE-20040131-JPSNAP.log
" Building 4.9-STABLE-20040131-JPSNAP is failed. "
...
" cpio: write error: No space left on device "
Regards
[EMAIL PROTECTED]
___
[EMAIL PROTECT
: page fault
I repeat, same hardware (promise Fasttrack100) [same two ide cable)
with two ide disk Maxtor 40Go-ata133 is GOOD ! (fbsd49 installed
and kernel recompiled whitout pb)
Regard
On Fri, 30 Jan 2004, rmkml wrote:
> Date: Fri, 30 Jan 2004 23:32:23 +0100 (CET)
> From: rmkml &
Hi,
I use last freebsd v4.10,
and found this :
/sbin# /usr/bin/file ./adjkerntz
./adjkerntz: ELF 32-bit LSB executable, Intel 80386, version 1
(FreeBSD), for FreeBSD 4.9.1, statically linked, stripped
4.9.1 ?
same binary in /bin /sbin ...
Regards
[EMAIL PROTECTED]
__
Hi,
I running less with file more size 2Go
on fbsd v4.10R
and if execute 'G' on less cmd
G not seek on end file ...
Possible you have same pb/question ?
Regards
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo
Hi,
Do you have the same pbs,
or can't you reproduce the same blocking ?
In my program, I use execve,
In your program, you use execv,
Do you think can make a difference ?
Why do you catch a SIGCHLD in sig_thread too waitpid, and you waitpid too in
exec_thread ?
Why do you use waitpid twice ?
here is a sample code (vfork_execve.c) to demonstrate a locking problem.
The code launch 3 threads :
1 signal
2 endless do nothing
3 a socket server (bind to 127.0.0.1:12345)
The server accept 3 cmd:
1) close => close cnx
2) sleep => use vfork /execv to launch external "/bin/sleep 20"
to r
ok sorry, change on Makefile :
CCFLAGS=$(CCFLAGS_BSD)
LIBS= $(LIB_THREAD_BSD) $(LIB_BSD)
Regards.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message
ou in advance.
Bests regards.
Terry Lambert wrote:
> rmkml wrote:
> > here is a sample code (vfork_execve.c) to demonstrate a locking problem.
>
> The short answer is that your code is wrong.
>
> The longer answer is that your code is assuming implementation
> details in v
Hi,
Im a process pb on freebsd47R,
and I start truss over, I view :
...
gettimeofday(0x28126dec,0x0) = 0 (0x0)
gettimeofday(0x28126dec,0x0) = 0 (0x0)
accept(0x6,0xbfadcfa4,0xbfadcfa0)ERR#35 'Resource temporarily
unavailable'
gettimeofday(0x
Sorry,
I posted an error on my program.
Regard.
Peter Jeremy wrote:
> On Tue, Feb 11, 2003 at 05:17:15PM +0100, rmkml wrote:
> >Im a process pb on freebsd47R,
> ...
> >gettimeofday(0x28126dec,0x0) = 0 (0x0)
> >gettimeofday(0x28126dec,0x0)
Hi,
Im found pb compiled :
# cd /sys
# make
.
cc -O -pipe -I/usr/src/sys/boot/i386/libi386/../../common
-I/usr/src/sys/boot/i386/libi386/../btx/lib
-I/usr/src/sys/boot/i386/libi386/../../.. -I. -DCOMPORT=0x3f8
-DCOMSPEED=9600 -I/usr/src/sys/boot/i386/libi386/../../../../lib/libstand/
-DT
sorry,
its my pb and not an Error.
Regards
On Wed, 22 Oct 2003, rmkml wrote:
> Date: Wed, 22 Oct 2003 16:47:29 +0200 (CEST)
> From: rmkml <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: pb compiled freebsd 49rc3 (iso)
>
> Hi,
>
> Im found pb com
Hi,
I've a problem with a C program:
This is a multithread client/server; there are 3 mains threads
functions:
- one to receive signals (pthread_setmask() SIGQUIT, HUP, ALRM,
sigwait()...)
- one to proceed tasks (pthread_cond_wait in an infinite loop)
- one to accept tcp cnx (listen, accept, fgets
22 matches
Mail list logo