NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/56741: X error messages : trap: 'SIGKILL' cannot be caught + xauth: file .serverauth.xxx does not exist



>Number:         56741
>Category:       misc
>Synopsis:       X error messages : trap: 'SIGKILL' cannot be caught + xauth: file .serverauth.xxx does not exist
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 05 20:50:01 +0000 2022
>Originator:     fabrice
>Release:        9.2_STABLE
>Organization:
>Environment:
NetBSD ms7817 9.2_STABLE NetBSD 9.2_STABLE (GENERIC) #0: Mon Feb 28 16:39:22 UTC 2022  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
When running X, these error messages appear at first :

  trap: 'SIGKILL' cannot be caught
  xauth: file /home/<user>/.serverauth.xxx does not exist

I know these messages are not very important, but it seems to me that they are really useless and can lead one to believe that there is a real problem !!!


>How-To-Repeat:
In the text shell console launch X :

$ startx

In X swap to text shell console :

Ctrl-Alt-F1

  trap: 'SIGKILL' cannot be caught
  xauth: file /home/<user>/.serverauth.xxx does not exist
  ...

The messages are also visible when you exit X and go back in the text shell console.
>Fix:
these messages can be avoided with the following changes in the file /usr/X11R7/bin/startx at line 176:

# create a file with auth information for the server. ':0' is a dummy.
    xserverauthfile=$HOME/.serverauth.$$
++  touch $xserverauthfile
--  trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP KILL BUS TERM
++  trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP BUS TERM
    xauth -q -f "$xserverauthfile" << EOF
add :$dummy . $mcookie
EOF



Home | Main Index | Thread Index | Old Index