Re: 10.3 and reboot -r (reroot)

2016-05-02 Thread Jilles Tjoelker
e new root file system, which may be undesirable. It may be better to use the original argv[0]. The kernel passes a full pathname here. While reading the code, I noticed another issue. The kill(-1, SIGKILL) may fail with [ESRCH] if there is no process to kill. In this case, the reroot should co

Re: cp from NFS to ZFS hung in "fifoor"

2015-11-28 Thread Jilles Tjoelker
find first, for example by checking what has been copied already) for writing, like : >/path/to/some/fifo. It will be replaced with an empty file at the destination. -- Jilles Tjoelker ___ freebsd-stable@freebsd.org mailing list https://lists.fre

Re: Latest stable (r287104) bash leaves zombies on exit

2015-08-29 Thread Jilles Tjoelker
On Sat, Aug 29, 2015 at 04:41:30PM +0300, Konstantin Belousov wrote: > On Sat, Aug 29, 2015 at 03:01:38PM +0200, Jilles Tjoelker wrote: > > Looks good to me, except that I think a vforked child (in system() and > > posix_spawn*()) should use the system calls and not libthr'

Re: Latest stable (r287104) bash leaves zombies on exit

2015-08-29 Thread Jilles Tjoelker
ls and not libthr's wrappers. This reduces the probability of weird things happening between vfork and exec, and also avoids an unexpected error when posix_spawnattr_setsigdefault()'s mask contains SIGTHR. -- Jilles Tjoelker ___ freebsd

Re: script(1), cfmakeraw() and Ctrl-Z

2013-07-14 Thread Jilles Tjoelker
really needed? The cfmakeraw() call ensures that the processes running within script get all control characters. For example, you can suspend a job in the inner shell using Ctrl+Z. This indeed makes it impossible to suspend script itself. -- Jilles Tjoelker __

Re: FreeBSD 9: fdisk -It crashes kernel

2013-04-25 Thread Jilles Tjoelker
4/frame 0xc5a08a34 > >> vfs_donmount(c84c42f0,1,0,c84cf200,c84cf200,…) at > >> vfs_donmount+0x1423/frame 0xc5a08c24 > >> sys_nmount(c84c42f0,c5a08ccc,c5a08cc4,1010006,c5a08d08,…) at > >> sys_nmount+0x7f/frame 0xc5a08c48 > >> sy

Re: ipv6_addrs_IF aliases in rc.conf(5)

2012-12-20 Thread Jilles Tjoelker
n you can use; in older versions you can use hexdigit and hexprint from network.subr. -- Jilles Tjoelker ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "f

Re: /bin/sh arithmetic doesn't seem to like leading 0 now

2012-09-23 Thread Jilles Tjoelker
On Fri, Sep 21, 2012 at 10:26:37PM +, David O'Brien wrote: > On Fri, Sep 21, 2012 at 07:34:06PM +0200, Jilles Tjoelker wrote: > > On Fri, Sep 21, 2012 at 10:09:02AM -0700, David Wolfskill wrote: > > > $ echo $(( ( $( date +%m ) - 1 ) / 3 + 1 )) > > >

Re: /bin/sh arithmetic doesn't seem to like leading 0 now

2012-09-21 Thread Jilles Tjoelker
ough it is not in POSIX. With POSIX only, it is still possible to do it reasonably efficiently, for example $(( 1$(date +%m) - 100 )) or v=$(date +%m); v=${v#0}. -- Jilles Tjoelker ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Re: Too many open files

2012-03-27 Thread Jilles Tjoelker
ve information in kernel memory; it cannot be permitted in a jail. -- Jilles Tjoelker ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Re: A problem with MAXPATHLEN on a back

2012-03-03 Thread Jilles Tjoelker
THLEN, then repeating the process with relative pathnames until the remaining part is shorter than MAXPATHLEN). -- Jilles Tjoelker ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Re: GENERIC make buildkernel error / fails - posix_fadvise

2012-01-22 Thread Jilles Tjoelker
right-hand side of this. This does not handle all possible characters in filenames, such as a newline. The perlrun manpage suggests something with find's -print0 primary. Alternatively, use find's -unlink primary. -- Jilles Tjoelker ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Re: SCHED_ULE should not be the default

2011-12-13 Thread Jilles Tjoelker
if (--ts->ts_slice > 0) > - return; > - /* >* We're out of time, force a requeue at userret(). >*/ > ts->ts_slice = sched_slice; > and refusal to use options FULL_PREEMPTION > But no one has unsubscribed

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-14 Thread Jilles Tjoelker
disable the echoing but this may cause problems if the application is changing termios settings concurrently and generally feels bad. It may be best to remove writing EOF characters, perhaps adding an option to enable it again if there is a concrete use case for it. -- Jilles Tjoelker _

Re: sigwait return 4

2011-08-27 Thread Jilles Tjoelker
On Thu, Aug 25, 2011 at 12:29:29AM +0300, Kostik Belousov wrote: > On Wed, Aug 24, 2011 at 10:56:09PM +0200, Jilles Tjoelker wrote: > > sigwait() was fixed not to return EINTR in 9-current in r212405 (fixed > > up in r219709). The discussion started at > > http://lists.

Re: sigwait return 4

2011-08-24 Thread Jilles Tjoelker
freebsd-threads/2010-September/004892.html Solaris is simply wrong in the same way we were wrong. Although POSIX may not be as clear on this as one may like, its intention is clear and additionally not returning EINTR reduces subtle portability problems. Note that sigwaitinfo() and sigtimedwait()

Re: Change in behavior to stat(1)

2011-03-04 Thread Jilles Tjoelker
roken links? A better answer to your original question was already given, but for that command, isn't it sufficient to do if ! [ -e $link ]; then rm $link; fi All test(1)'s primaries that test things about files follow symlinks, except for -h/-L. -- Jilles Tjoelker __

Re: Policy on static linking ?

2011-01-15 Thread Jilles Tjoelker
tp://chris.dzombak.name/files/openssl/openssl-0.9.8l-symbolVersioning.diff http://rt.openssl.org/Ticket/Display.html?id=1222&user=guest&pass=guest -- Jilles Tjoelker ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Re: Policy on static linking ?

2011-01-14 Thread Jilles Tjoelker
fix but still needs extra effort. (For example, pkg-config has Libs.private to help with it.) If you want to link dynamically but avoid too much management overhead, consider using PCBSD's PBI system which allows you to ship all necessary .so files (except system ones) with your application.

Re: utmp.h exists or not in RELENG_8?

2010-10-02 Thread Jilles Tjoelker
may be caused by a stray utmpx related file found by the configure process. Partly because the various unix variant developers have made a mess of utmp/utmpx, the code to use it is rather fragile. -- Jilles Tjoelker ___ freebsd-stable@freebsd.org ma

Re: mysqld_safe holding open a pty/tty on FreeBSD (7.x and 8.x)

2010-10-01 Thread Jilles Tjoelker
ns with daemon(8), /dev/null 2>&1 or similar is inferior to implementing daemonizing in the program itself. Think of the poor soul who needs to install and start N daemons full of bugs and configuration errors: it is better if such errors show up on the console instead of being hidden away

Re: daily run output 800.scrub-zfs fixups

2010-08-22 Thread Jilles Tjoelker
ested a lot of cases for the timeout value, > overriding a pool specific value and overriding the default where some > of them and all worked. > If you have a case where it does not work, it would be nice if you > could add a "set -x" in the beginning of the script

Re: SIGEPIPE after update to 8.1-RC2

2010-07-25 Thread Jilles Tjoelker
does not cause problems. -- Jilles Tjoelker ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Re: SIGEPIPE after update to 8.1-RC2

2010-07-17 Thread Jilles Tjoelker
unlikely to help you. Similarly, SIGPIPE may be blocked (masked). Few programs expect this. The -i and -j options in procstat should be helpful in finding what exactly is wrong with SIGPIPE. (These options are relatively new, but should be in 8.1.) -- Jilles Tjoelker

Re: "calcru: runtime went backwards" messages

2010-06-10 Thread Jilles Tjoelker
e messages can be ignored, but indicate that CPU time statistics may be inaccurate. I suppose fairly arbitrary changes can cause the messages to appear or disappear. -- Jilles Tjoelker ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Re: locale-related build problems (was: kernel build failed)

2010-01-03 Thread Jilles Tjoelker
27;I'. awk(1) knows about this and generates a file that conforms to Turkish conventions but obviously will not work. As a workaround, you can run your builds with LC_ALL=C in the environment, disabling locale support. (e.g. env LC_ALL=C make buildkernel). This should be fixed by adding LC_ALL=C somewhere in the build process, possibly only for these awk commands. -- Jilles Tjoelker ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Re: Can close-ing a pipe trigger a SIGPIPE?

2009-10-17 Thread Jilles Tjoelker
92722 tclsh8.5 RET sigreturn JUSTRETURN 92722 tclsh8.5 CALL close(0x5) 92722 tclsh8.5 RET close 0 92722 tclsh8.5 CALL close(0x4) 92722 tclsh8.5 RET close 0 It seems unwise to assume that a write(2) of 0 bytes is a noop. Even if it is, doing it is a waste of a s

Re: Value of $? lost in the beginning of a function.

2009-07-19 Thread Jilles Tjoelker
Sun Nov 23 20:23:57 2008 UTC (7 months, 3 weeks ago) by stefanf Fix $? at the first command of a function. The previous exit status was saved twice and thus lost. -- Jilles Tjoelker ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd

Re: Why old files in /etc ?

2009-06-14 Thread Jilles Tjoelker
e again. To cope with this, it's best to use mergemaster's -F or -U options. This question has been asked before. -- Jilles Tjoelker ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To un

Re: Unnamed POSIX shared semaphores

2009-06-01 Thread Jilles Tjoelker
s. If process-shared semaphores really work, then the above structure is not a pathological case. Effectively, sem_t is carved in stone. So process-private semaphores should continue to have most of their stuff in a separately allocated structure, to preserve flexibility. Perhaps a better method

Re: 7.2-RC2 Install Feedback

2009-04-30 Thread Jilles Tjoelker
is much easier than adding menu entries manually. XFCE also needs the desktop files in the new location. See http://standards.freedesktop.org/menu-spec/latest/ for more information. -- Jilles Tjoelker ___ freebsd-stable@freebsd.org mailing list http://li

Re: expand_number(3) silently truncates numeric part of the argument to 32 bit on i386, light impact on gjournal

2008-07-06 Thread Jilles Tjoelker
ehaviour. Adding #include fixes it. The file is slightly changed in CURRENT but the same patch should apply. -- Jilles Tjoelker --- src/lib/libutil/expand_number.c.orig 2007-09-05 16:27:13.0 +0200 +++ src/lib/libutil/expand_number.c 2008-07-06 13:11:02.766238000 +0200 @@ -33,6 +

Re: panic(): vinvalbuf: dirty bufs: perhaps a ffs_syncvnode bug?

2006-11-27 Thread Jilles Tjoelker
buf() will handle a BO_SYNC/ffs_syncvnode() error by aborting with an error return. It seems that in most cases this will cause the operation invoking the vinvalbuf() to fail. However, in at least one case (vm_object_terminate()), the error will be ignored; this may cause old garbage/da

Re: rc-ng problem with [procname] (e.g. kernel threaded procs)

2005-09-16 Thread Jilles Tjoelker
0 _argv' > > _fp_match='case "$_arg0" in > > - > > $_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})")' > > + > > "$_procname"|$_procnamebn|${_procnameb

Re: [PATCH] Re: /etc/rc.d/sshd : "kldload random" missing?

2005-04-25 Thread Jilles Tjoelker
that way. rc.d scripts do not call one another. The "# REQUIRE:" lines affect rcorder(8) so it should be ok on bootup. -- Jilles Tjoelker ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable

Re: USB mouse troubles

2005-04-07 Thread Jilles Tjoelker
ease it, even when you subsequently load ums. This happens before usbd gets to know about the device. A somewhat crude workaround would be to load the drivers for the devices to be used before starting usbd. This would mean /boot/loader.conf, most likely. -- Jilles Tjoelker _

Re: Just a sanity check before I sumbit a buig report

2005-03-13 Thread Jilles Tjoelker
is supported, the ru_i?rss ticks are often not described at all or they are something strange like one per second. Consequently, this facility is nonportable and the tick frequency should be described using sysctl(). -- Jilles Tjoelker ___ freebsd-stable@

5.3-RELEASE-p5 panic bundirty: buffer 0xd63d85e0 still on queue 1

2005-02-21 Thread Jilles Tjoelker
session9112K 14K20158 128 pgrp99 7K 8K25399 64 mtx_pool 1 8K 8K1 module 18612K 12K 186 64,128 MSDOSFS mount 1 128K128K1 ip6ndp 9 1K 1K 13 64,128 ip6opt 0 0K 2K

Re: USB scanner not attached when connected after system startup]

2005-01-09 Thread Jilles Tjoelker
ke the > > scanner is not found for one reason or another. Try all USB ports on your computer; use MAKEDEV to create /dev/usb1, /dev/usb2, etc (they are not created by default). -- Jilles Tjoelker ___ freebsd-stable@freebsd.org mailing list h

unkillable processes after debugging on 5.3R

2005-01-03 Thread Jilles Tjoelker
nown file type 5 for file 10 of pid 20328 unknown file type 5 for file 12 of pid 20328 can't read pipe at 0x0 peters zsh20328 13* error [EMAIL PROTECTED] /home/jilles% -- Jilles Tjoelker ___ freebsd-stable@freebsd.org mailing list http:/