🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #1047

señales

#1047
From: AnimAlf
Date: Wed, 19 Apr 2006 14:46
42 lines
2245 bytes
--=-8P5dAe4QD8OvrHid0Dxb
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

hola,

he echo un script en perl y me gustar=C3=ADa que al finalizar una sesion de
las X atendiera a la se=C3=B1al para borrar el archivo de bloqueo, pero no =
se
de que se=C3=B1al se trata, ahora utilizo estas:

$SIG{'HUP'} =3D \&finalizar; # Si la xterm se cierra
$SIG{'INT'} =3D \&finalizar; # Si se pulsa Ctrl - C
$SIG{'TERM'} =3D \&finalizar; # Cre=C3=ADa que era esta.
...
...
sub finalizar {
  # guardar y borrar bloqueo
  ...
}

Creia que le enviaba SIGTERM a todas las aplicaciones pero veo que no es
as=C3=AD. =C2=BFQu=C3=A9 se=C3=B1al puedo utilizar si se est=C3=A1 cerrando=
 una sesi=C3=B3n de X?

--=-8P5dAe4QD8OvrHid0Dxb
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: =?ISO-8859-1?Q?Aix=F2?= =?ISO-8859-1?Q?_=E9s?= una part
	d'un missatge, signada digitalment

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iQCVAwUAREZNTh535IyztBIVAQIVugP/ZxgBsamlOvS21wWTgWwnsBwVJMEUKXPz
hLzfOtv/io0dqCzXbmxjX8e/ZiUdPmylJDwl2YuFC22GRLQgDz8ahj2676eQbNfB
p6PxA0f4xAZFb/639sXEq9Q0FhRiZWnc+Lv83ONJvhYemFlSqiCkld1y0B2WdEzo
YqHDjIStjSI=
=PVCF
-----END PGP SIGNATURE-----

--=-8P5dAe4QD8OvrHid0Dxb--
Technical Details
Message-ID: <1145457998.20049.12.camel@general.engendro.sytes.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!fu-berlin.de!nsnmpen1-lo.nuria.telefonica-data.net!telenews.teleline.es!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,53ddbc52f9b07e3,start
X-Google-Attributes: gidf86c8,public
X-Google-Language: SPANISH,UTF8
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!fu-berlin.de!nsnmpen1-lo.nuria.telefonica-data.net!telenews.teleline.es!not-for-mail
X-Trace-PostClient-IP: 80.32.76.249
Newsgroups: es.comp.os.linux.programacion
Subject: señales
From: AnimAlf <AnimAlf@engendro.sytes.net>
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-8P5dAe4QD8OvrHid0Dxb"
Organization: Is the truth out there?
Message-ID: <1145457998.20049.12.camel@general.engendro.sytes.net>
Mime-Version: 1.0
X-Mailer: Evolution 2.4.2.1 
Lines: 43
Date: Wed, 19 Apr 2006 14:46:39 GMT
NNTP-Posting-Host: 10.20.31.4
X-Complaints-To: usenet@teleline.es
X-Trace: telenews.teleline.es 1145457999 10.20.31.4 (Wed, 19 Apr 2006 16:46:39 MET DST)
NNTP-Posting-Date: Wed, 19 Apr 2006 16:46:39 MET DST