Files
bash-tut/teil25/sighup.sh
2026-01-17 09:36:55 +01:00

16 lines
133 B
Bash
Executable File

#! /usr/bin/bash
on_hup() {
echo "hup handler"
}
trap on_info SIGHUP
my_pid=$!
echo "${my_pid}"
while true; do
sleep 1
done