search for: gotit

Displaying 13 results from an estimated 13 matches for "gotit".

2007 Oct 17
3
Observations on SVD linpack errors, and a workaround
...ceed by writing a third option based on ## eigen(). That is numerically inferior to svd when the latter ## works. ## -Art Owen, October 2007 ## svdwrapper = function( x, nu, nv, verbose=T ){ # Caution: I have not tested this much. # It's here as an example for an R-Help discussion. gotit = F try( {svdx = svd(x,nu,nv); gotit=T}, silent = !verbose ) if( gotit )return(svdx) try( {svdtx = svd(t(x),nv,nu); gotit=T}, silent = !verbose ) if( !gotit )stop("svd(x) and svd(t(x)) both failed.") if( verbose )print("svd(x) failed but svd(t(x)) worked.") temp =...
2019 Jan 25
0
[klibc:update-dash] jobs: Handle string-based job descriptors
...ndle string-based job descriptors When looking for a job using a string descriptor, e.g. fg %man the relevant loop in src/jobs.c only ever exits to the err label. With this patch, when the end condition is reached, we check whether a job was found, and if so, set things up to exit correctly via gotit. Multiple matches are already caught using the test in the match block. Signed-off-by: Stephen Kitt <steve at sk2.org> Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/dash/jobs.c | 8 +++++--- 1 file chang...
2020 Mar 28
0
[klibc:update-dash] dash: jobs: Handle string-based job descriptors
...aa9135956e3b2a2b749b6dd96a7e988 ] When looking for a job using a string descriptor, e.g. fg %man the relevant loop in src/jobs.c only ever exits to the err label. With this patch, when the end condition is reached, we check whether a job was found, and if so, set things up to exit correctly via gotit. Multiple matches are already caught using the test in the match block. Signed-off-by: Stephen Kitt <steve at sk2.org> Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/dash/jobs.c | 8 +++++--- 1 file chang...
2004 Jun 22
0
Perl Script for pulling information from a mysql database
...ase: " . DBI->errstr; sub SelectSQL { my($sql) = @_; my @MATCHES, $hash; $sth = $dbh->prepare("$sql"); $sth->execute(); while ($hash = $sth->fetchrow_hashref) { push @MATCHES, $hash; } return @MATCHES; } sub SelectSingleSQL { my($sql) = @_; my($gotit, $return, $hash); $sth = $dbh->prepare("$sql"); $sth->execute(); while ($hash = $sth->fetchrow_array) { unless ($gotit) { $return = $hash; $gotit++; } else { warn "got multiple SQL returns when exepecting only one"; } } retu...
2014 Jul 02
1
recording in mp3
...unction processevents () { action=0 while true ; do if [ $action == 0 ] ; then timeout=300 else timeout=5 fi read -t $timeout event if [ $? != 0 ] ; then action=0 /data/soundchaser/periodic else if [[ $event =~ ".wav" || $event =~ ".gotit" ]] ; then action=1 fi fi done } cd /data/soundchaser inotifywait -m /data/soundchaser/public_html/done | processevents
2019 Jan 25
0
[klibc:update-dash] [JOBS] Fix off-by-one error for multiple of four job numbers
...iff --git a/usr/dash/jobs.c b/usr/dash/jobs.c index 009bbfee..1c6c6fbd 100644 --- a/usr/dash/jobs.c +++ b/usr/dash/jobs.c @@ -698,7 +698,7 @@ check: if (is_number(p)) { num = atoi(p); - if (num < njobs) { + if (num <= njobs) { jp = jobtab + num - 1; if (jp->used) goto gotit;
2019 Jan 25
0
[klibc:update-dash] jobs: Don't attempt to access job table for job %0
...bs.c b/usr/dash/jobs.c index 1c6c6fbd..7c324b76 100644 --- a/usr/dash/jobs.c +++ b/usr/dash/jobs.c @@ -698,7 +698,7 @@ check: if (is_number(p)) { num = atoi(p); - if (num <= njobs) { + if (num > 0 && num <= njobs) { jp = jobtab + num - 1; if (jp->used) goto gotit;
2020 Mar 28
0
[klibc:update-dash] dash: jobs: Don't attempt to access job table for job %0
...bs.c b/usr/dash/jobs.c index c9b631ac..49c14441 100644 --- a/usr/dash/jobs.c +++ b/usr/dash/jobs.c @@ -698,7 +698,7 @@ check: if (is_number(p)) { num = atoi(p); - if (num <= njobs) { + if (num > 0 && num <= njobs) { jp = jobtab + num - 1; if (jp->used) goto gotit;
2020 Mar 28
0
[klibc:update-dash] dash: [JOBS] Fix off-by-one error for multiple of four job numbers
...iff --git a/usr/dash/jobs.c b/usr/dash/jobs.c index b9ff1402..c9b631ac 100644 --- a/usr/dash/jobs.c +++ b/usr/dash/jobs.c @@ -698,7 +698,7 @@ check: if (is_number(p)) { num = atoi(p); - if (num < njobs) { + if (num <= njobs) { jp = jobtab + num - 1; if (jp->used) goto gotit;
2014 Jul 03
1
recording in mp3
...unction processevents () { action=0 while true ; do if [ $action == 0 ] ; then timeout=300 else timeout=5 fi read -t $timeout event if [ $? != 0 ] ; then action=0 /data/soundchaser/periodic else if [[ $event =~ ".wav" || $event =~ ".gotit" ]] ; then action=1 fi fi done } cd /data/soundchaser inotifywait -m /data/soundchaser/public_html/done | processevents -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to...
2003 Oct 01
1
4.9 RC1 (i386) mplayer induced panic
...(struct lockit *) 0xffffffff holder = -1036583680 #7 0xc0247d40 in softdep_update_inodeblock (ip=0xc236fd00, bp=0xcc8e2f2c, waitfor=0) at /usr/src/sys/ufs/ffs/ffs_softdep.c:3813 ip = (struct inode *) 0xc236fd00 inodedep = (struct inodedep *) 0xc039b3e0 wk = (struct worklist *) 0xc236fd00 gotit = -1036583680 #8 0xc0242d75 in ffs_update (vp=0xdb241380, waitfor=0) at /usr/src/sys/ufs/ffs/ffs_inode.c:106 fs = (struct fs *) 0xc2356800 bp = (struct buf *) 0xcc8e2f2c ip = (struct inode *) 0xc236fd00 error = 0 #9 0xc024c775 in ffs_fsync (ap=0xc032d228) at /usr/src/sys/ufs/ffs/ffs_vnops.c:2...
2004 Jul 02
24
TC Hashing Filters
Hey all, I had asked a question a little while ago about CPU usage being outrageous while using tc and a cbq qdisc. Ed was very kind and offered a few suggestions. One of these was to look at hashing. So after pounding away at it for about a week, I have a general understanding of how it works and have tried to implement it. Unfortunately, and quite obviously since I''m posting here, it
2013 Jul 31
29
[PATCH 0/9] tools: remove or disable old/useless/unused/unmainted stuff
depends on "autoconf: regenerate configure scripts with 4.4 version" This series removes some of the really old deadwood from the tools build and makes some other things which are on their way out configurable at build time with a default depending on how far down the slope I judge them to be. * nuke in tree copy of libaio * nuke obsolete tools: xsview, miniterm, lomount & sv *