Re: [Chicken-users] posix-extras: allow to set process title displayed by ps(1)

2014-10-13 Thread Andy Bennett
Hi, Alex has worked on a version that keeps track of the original argv[0] length: - (define (set-proc-title str) (print "setting proc title to " str) (receive (c v) (argc+argv) ((foreign-lambda* void ((c-string str) (c-pointer argv)) "static int ori

[Chicken-users] posix-extras: allow to set process title displayed by ps(1)

2014-10-13 Thread Andy Bennett
Hi, Alex Charlton & I worked through how to set the process name as displayed by ps(1). This might be a useful addition to the posix-extras egg. - (define (set-proc-title str) (receive (c v) (argc+argv) ((foreign-lambda* void ((c-string str) (c-pointer argv))