Your message dated Sat, 18 Jan 2025 12:09:55 +0000
with message-id <[email protected]>
and subject line Bug#308627: fixed in sredird 2.2.2-0.2
has caused the Debian Bug report #308627,
regarding sredird-2.2.1 not exiting on SIGTERM
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
308627: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=308627
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sredird
Version: 2.2.1-1.1

To begin, I'm using sredird in a RedHat 8 system.
uname -a  -->  Linux bfscs320.lsikc3.net 2.4.20-30.8.legacy.2 #1 Thu Jan 6 
14:15:57 EST 2005 i486 i486 i386 GNU/Linux
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)


I use xinetd to start sredird, the config file to start sredird is below.
I use a telnet client to connect to sredird (telnet abc.com 6001)
If I send a SIGTERM to sredird, it does not exit. The files are all closed and
the lock released, but both sredird and the telnet client remain running.
A SIGKILL to sredird will end sredird and the telnet client exits. (That's
what I expect to happen with a SIGKILL)

I believe the problem is in the function SignalFunction. It calls ExitFunction, 
which
does all the cleanup, but then returns to SignalFunction, which then returns to 
the
interrupted code. 

I replaced the call to ExitFunction with a call to exit(0), and sredird now 
exits if it gets a
SIGTERM. 

I did the same to BreakFunction, but I have not tested that change yet.


I hope this helps.

================================================
/* Function called on many signals */
void SignalFunction(int unused)
  {
    /* Just to avoid compilation warnings */
    /* There's no performance penalty in doing this 
    because this function is almost never called */
    unused = unused;
    
    /* Same as the exit function */
    /*ExitFunction();   replace with a call to exit */
    exit (0);
  }




=============== sredird xinetd startup file ==================
service scsport6001
{
     type        = unlisted
     socket_type = stream
     wait        = no
     user        = root
     server      = /usr/local/sbin/sredird
     server_args = 5 /dev/ttyB1 /var/lock/LCK..ttyB1 5
     port        = 6001
     disable     = no
}

-- 
Bill Feero
Logical Solutions, Inc.

Attachment: pgp4gzeBWPp6W.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: sredird
Source-Version: 2.2.2-0.2
Done: наб <[email protected]>

We believe that the bug you reported is fixed in the latest version of
sredird, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
наб <[email protected]> (supplier of updated sredird package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 10 Jan 2025 16:29:28 +0100
Source: sredird
Architecture: source
Version: 2.2.2-0.2
Distribution: unstable
Urgency: medium
Maintainer: Russell Coker <[email protected]>
Changed-By: наб <[email protected]>
Closes: 308627 716352
Changes:
 sredird (2.2.2-0.2) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Re-raise deadly signals instead of ignoring them (Closes: #308627)
   * Fix segfault if insufficient arguments and some start with '-'
     (Closes: #716352)
   * missing-separator-between-items '${shlibs:Depends}' and '${misc:Depends}'
Checksums-Sha1:
 8b1db6f4c0661f17700d0021ff75fca22d830e1d 1660 sredird_2.2.2-0.2.dsc
 dfe2608eeb9e4f3bb15e4394af281a3241cfbf1b 3128 sredird_2.2.2-0.2.debian.tar.xz
 fa7e2d9ad7d6bef456212ac399adbc698af22c62 6365 
sredird_2.2.2-0.2_source.buildinfo
Checksums-Sha256:
 3ed66d7cbc275d94d9dc760025ef8d3a658e8778cbf7ed07b31fc1f5572eb0c4 1660 
sredird_2.2.2-0.2.dsc
 33bf27ef0a132efdd27140f697e12e0475546d5c03eabd2f70c8372be52b3faa 3128 
sredird_2.2.2-0.2.debian.tar.xz
 e6e380725711d7bc2c54de1c2411261f2ebb8d0a747177c2bea36c85ef0ed3fb 6365 
sredird_2.2.2-0.2_source.buildinfo
Files:
 3d7a958d1a90d3429ae8babe283c201b 1660 comm optional sredird_2.2.2-0.2.dsc
 de1c6a000aa6ebcf5b40ab8176f48045 3128 comm optional 
sredird_2.2.2-0.2.debian.tar.xz
 e2d1bdc631a0231669852b8a19f4cc71 6365 comm optional 
sredird_2.2.2-0.2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmeLkiYACgkQMfMURUSh
dBp7uRAAvDPJAK3Na9rweln6TmrtAECgJay01qo8iQcOTM5rdmbiUkJBf+X4QDw2
hjbl22xmoVn120B4W0by5jktz9DugeaUmcovpbta+0pmIgEfQmyKavzyMkxkq/ec
eYHAC77iuMWKo8wlSV164LoKWLqZMPbKnFuzgFsd92BYzBAyKXRePalnHtAg4hJc
CdBfZ8qC/CSNnUKW1ZBlMMVyS5s3A6kh9ZWV5g/Ur6QLIXDMta6v9dBwlGZwqlCD
9d69econ9E8iOXnTKdBKcmAJYLvJn8yWyZeN0N1ZPgKW1gwCFRWHdZbL+Th3LZBQ
h9B2GY7NzPfgnUmGjLXgGMalsnVy32A0I3VkA6PA++6aSDbPfIRnYnbs8b3VHP1a
bk6GK7ThJM67m0YmIeRbymEPMzSfM8GxU3Q4OJxY+bQrJfFvuvA7vGz11CT4SHhL
ijSkRdChf5qTY9+KomeWWR3Q0suSk7N0bOsCVFh/ozzFsz4cIJOXnGie5l/4yBcD
4vB5MftQdYIEYc5l3OkpPPKAmij9F4FmNlgJrK2OhmW6xTH1DXMJwB7Gw1bp5bRh
7H+O8b72mhnf0jD1lpoBcuxiEkzz5lNCZKmQnHJACScmKb1Iw19YO7gRNQ4iK71S
0ZFa2V0n6iFck+0NjXFQotYPzIyEXONMTWIIjc/EBDb/JZWi1cg=
=+ia/
-----END PGP SIGNATURE-----

Attachment: pgpSgy7u69C5w.pgp
Description: PGP signature


--- End Message ---

Reply via email to