Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37907894
en ru br
ALT Linux repositórios
S:2.20.8-alt13
5.0: 2.20.8-alt3

Group :: Desktop gráfico/GNOME
RPM: gdm2.20

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

#!/bin/sh -ux
# This script returns success if it itself or a command launched
# by it were killed by SIGTERM signal.

. /bin/shell-error

__term_ok()
{
exit 0
}

[ $# -ge 1 ] || fatal "Usage: ${0##*/} <command> [args]"

cmd="$1"
shift

[ -x "$cmd" ] || fatal "Couldn't find $cmd"

trap __term_ok TERM

$cmd $@ >/dev/null 2>&1
exit_code=$?
# Is it was killed by SIGTERM?
[ $exit_code -eq 143 ] && exit 0 || exit $exit_code
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009