File: signaler.pl

package info (click to toggle)
libipc-system-simple-perl 1.30-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 256 kB
  • sloc: perl: 908; makefile: 4
file content (12 lines) | stat: -rwxr-xr-x 260 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl -w
use strict;
use warnings;

# This program always zaps itself with the signal specified.  Perfect
# for testing.  ;)

my $signal_number = shift(@ARGV) || 0;

kill($signal_number, $$);

exit(1);	# Exit failure if the signal wasn't very scary.