From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 23 Jun 2004 17:29:34 +0400 From: "Dmitry V. Levin" To: ALT Devel discussion list Subject: Re: [devel] system(3) blocks alarm(2) under strace(1) Message-ID: <20040623132934.GA22054@basalt.office.altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <20040623083937.GP1926@solemn.turbinal.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6c2NcOVqGQ03X4Wi" Content-Disposition: inline In-Reply-To: <20040623083937.GP1926@solemn.turbinal.org> X-fingerprint: 9658 398D 181B 1200 8FC5 26B8 F6F8 846B C1E2 3429 X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jun 2004 13:29:35 -0000 Archived-At: List-Archive: List-Post: --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 23, 2004 at 12:39:37PM +0400, Alexey Tourbin wrote: > =F3=D4=CF=CC=CB=CE=D5=CC=D3=D1 =D7 =D0=C5=D2=CC=C5, =CE=CF =D7=CF=D3=D0= =D2=CF=C9=DA=D7=CF=C4=C9=D4=D3=D1 =C2=C5=DA =D7=D3=D1=CB=CF=C7=CF =D0=C5=D2= =CC=C1. >=20 > $ gcc alarm.c > $ ./a.out > diff=3D3 seconds > $ strace -o /dev/null ./a.out > diff=3D3 seconds > $ strace -f -o /dev/null ./a.out > diff=3D6 seconds > $ >=20 > =F7 =DE=C5=CD =DA=C4=C5=D3=D8 =D3=C5=CB=D2=C5=D4? =F7 strace(1) =D0=D2=CF -f =CE=C1=D0=C9=D3=C1=CE=CF: Trace child processes as they are created by currently traced processes as a result of the fork(2) system call. The new process is attached to as soon as its pid is known (through the return value of fork(2) in the parent process). This means that such children may run uncontrolled for a while (especially in the case of a vfork(2)), until the parent is scheduled again to complete its (v)fork(2) call. If the parent process decides to wait(2) for a child that is currently being traced, it is suspended until an appropriate child process either terminates or incurs a signal that would cause it to terminate (as determined from the child's current signal disposition). --=20 ldv --6c2NcOVqGQ03X4Wi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA2YW+9viEa8HiNCkRAtFKAJ9H7jw/K6kS7/if15V44Mnbf3COUwCePuWv LOGRSkDdjH0gXk1q9swe3IA= =NDov -----END PGP SIGNATURE----- --6c2NcOVqGQ03X4Wi--