aboutsummaryrefslogtreecommitdiff
path: root/src/port/exec.c
Commit message (Collapse)AuthorAge
* 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef listBruce Momjian2009-06-11
| | | | provided by Andrew.
* Update copyright for 2009.Bruce Momjian2009-01-01
|
* Append major version number and for libraries soname major version numberPeter Eisentraut2008-12-11
| | | | | | | to the gettext domain name, to simplify parallel installations. Also, rename set_text_domain() to pg_bindtextdomain(), because that is what it does.
* Fix MinGW warnings re formats and unused variables. per ITAGAKI TakahiroAndrew Dunstan2008-04-16
|
* Fix a number of places that were making file-type tests infelicitously.Tom Lane2008-03-31
| | | | | | | | | | | | | | | | | The places that did, eg, (statbuf.st_mode & S_IFMT) == S_IFDIR were correct, but there is no good reason not to use S_ISDIR() instead, especially when that's what the other 90% of our code does. The places that did, eg, (statbuf.st_mode & S_IFDIR) were flat out *wrong* and would fail in various platform-specific ways, eg a symlink could be mistaken for a regular file on most Unixen. The actual impact of this is probably small, since the problem cases seem to always involve symlinks or sockets, which are unlikely to be found in the directories that PG code might be scanning. But it's clearly trouble waiting to happen, so patch all the way back anyway. (There seem to be no occurrences of the mistake in 7.4.)
* Fix handling of restricted processes for Windows Vista (mainly),Magnus Hagander2008-02-29
| | | | | | | | | by explicitly adding back the user to the DACL of the new process. This fixes the failure case when executing as the Administrator user, which had no permissions left at all after we dropped the Administrators group. Dave Page with some modifications from me
* Update copyrights in source tree to 2008.Bruce Momjian2008-01-01
|
* pgindent run for 8.3.Bruce Momjian2007-11-15
|
* Use sizeof() for snprintf() buffer length.Bruce Momjian2007-01-29
|
* Update process termination message to display signal number and nameBruce Momjian2007-01-29
| | | | from exec.c and postmaster.c.
* Drat, can't fit an additional argument into log_error. Is it worth anTom Lane2007-01-28
| | | | | sprintf pushup to be sure we can report something useful for out-of-range exitstatus?
* Clean up broken usage of HAVE_DECL_SYS_SIGLIST and inconsistent/poorlyTom Lane2007-01-28
| | | | formatted error messages.
* Use autoconf build-in sys_siglist macro AC_DECL_SYS_SIGLIST, rather thanBruce Momjian2007-01-28
| | | | create our own.
* Add signal.h for sys_siglist reference.Bruce Momjian2007-01-28
|
* Use sys_siglist[] to print out signal names for signal exits, ratherBruce Momjian2007-01-28
| | | | than just numbers.
* Remove newline from error message because URL is gone.Bruce Momjian2007-01-23
|
* Back out use of FormatMessage(), does error values, not exceptionBruce Momjian2007-01-23
| | | | | values. Point to /include/ntstatus.h for an exception list, rather than a URL.
* Print meaningfull error text for abonormal process exit on Win32, ratherBruce Momjian2007-01-23
| | | | than hex codes, using FormatMessage().
* When system() fails in Win32, report it as an exception, print theBruce Momjian2007-01-22
| | | | exception value in hex, and give a URL where the value can be looked-up.
* Update CVS HEAD for 2007 copyright. Back branches are typically notBruce Momjian2007-01-05
| | | | back-stamped for this.
* Move set_pglocale_pgservice() from path.c to exec.c, so that pulling inTom Lane2006-09-11
| | | | | path.c does not in itself force linking of both exec.c and libintl. Should fix current ecpglib build failure on pickier platforms.
* Prepare code to be built by MSVC:Bruce Momjian2006-06-07
| | | | | | | | | | o remove many WIN32_CLIENT_ONLY defines o add WIN32_ONLY_COMPILER define o add 3rd argument to open() for portability o add include/port/win32_msvc directory for system includes Magnus Hagander
* Update copyright for 2006. Update scripts.Bruce Momjian2006-03-05
|
* Re-run pgindent, fixing a problem where comment lines after a blankBruce Momjian2005-11-22
| | | | | | | | | comment line where output as too long, and update typedefs for /lib directory. Also fix case where identifiers were used as variable names in the backend, but as typedefs in ecpg (favor the backend for indenting). Backpatch to 8.1.X.
* Standard pgindent run for 8.1.Bruce Momjian2005-10-15
|
* Use _() macro consistently rather than gettext(). Add translationBruce Momjian2005-02-22
| | | | macros around strings that were missing them.
* Add missing gettext() calls in find_my_exec(). It's probably too lateTom Lane2005-01-14
| | | | | to get these strings translated, but we may as well have them be translatable as not.
* Tag appropriate files for rc3PostgreSQL Daemon2004-12-31
| | | | | | | | Also performed an initial run through of upgrading our Copyright date to extend to 2005 ... first run here was very simple ... change everything where: grep 1996-2004 && the word 'Copyright' ... scanned through the generated list with 'less' first, and after, to make sure that I only picked up the right entries ...
* Remove 'optimization' to skip resolve_symlinks() when the foundTom Lane2004-12-24
| | | | | | | | executable file isn't itself a symlink. We still need to run the algorithm so that any directory symlinks in the path to the executable are replaced by a true path. Noticed this on seeing pg_config give me a completely wrong answer for --pkglibdir when I called it through a symlink to the installation bindir.
* In pipe_read_line Windows code, loop to ensure we get a whole lineTom Lane2004-12-20
| | | | | from the child process; fixes observed problems when the returned version number is '8.0.0' rather than '8.0.0rc1'. Magnus Hagander
* Work around lack of NLS support in libpgport by making those componentsPeter Eisentraut2004-11-27
| | | | | | who use it scan the relevant source files for their own catalog. It creates a bit of duplicate work for translators, but it gets the job done for now.
* Add code to find_my_exec() to resolve a symbolic link down to theTom Lane2004-11-06
| | | | | | actual executable location. This allows people to continue to use setups where, eg, postmaster is symlinked from a convenient place. Per gripe from Josh Berkus.
* Code cleanup in path.c and exec.c. Handle Windows drive and network specsTom Lane2004-11-06
| | | | | | everywhere not just some places, get rid of . and .. when joining path sections together. This should eliminate most of the ugly paths like /foo/bar/./baz that we've been generating.
* Remove use of "miscadmin.h" in port C files and remove test for frontendBruce Momjian2004-10-18
| | | | in miscadmin.h.
* Adjust comments previously moved to column 1 by pgident.Bruce Momjian2004-10-07
|
* Small WIN32_CLIENT_ONLY cleanup for new build patch.Bruce Momjian2004-09-27
|
* More Win32 cleanups for Dave Page.Bruce Momjian2004-09-27
|
* Make adjustment for MS VC and BCC compile of psql, from Dave Page.Bruce Momjian2004-09-27
|
* Pgindent run for 8.0.Bruce Momjian2004-08-29
|
* Update copyright to 2004.Bruce Momjian2004-08-29
|
* Fix for adding \n for zero-length win32 read_pipe returnBruce Momjian2004-08-16
|
* Clarify need for \r\n -> \n translation in version checking code.Bruce Momjian2004-08-16
|
* Path-mangling logic was failing to account for paths containing mentionsTom Lane2004-08-09
| | | | | | | | of '.' or '..'. Extend canonicalize_path() to trim off trailing occurrences of these things, and use it to fix up paths where needed (which I think is only after places where we trim the last path component, but maybe some others will turn up). Fixes Josh's complaint that './initdb' does not work.
* Fix Win32 pg_dumpall check.REL8_0_0BETA1Bruce Momjian2004-08-09
|
* Fix Win32 pg_dumpall, with help from Claudio.Bruce Momjian2004-08-08
|
* Improve comment.Bruce Momjian2004-08-08
|
* Here is a patch that fixes the pipes used in find_other_exec() whenBruce Momjian2004-07-26
| | | | | | | running as a service on windows <= 2000. Required to make the pg_ctl service wrapper to work at all. Magnus Hagander
* Attached is a patch that takes care of the PATHSEP issue. I made a moreBruce Momjian2004-06-10
| | | | | | | | | | | | | | | | | | | extensive change then what was suggested. I found the file path.c that contained a lot of "Unix/Windows" agnostic functions so I added a function there instead and removed the PATHSEP declaration in exec.c altogether. All to keep things from scattering all over the code. I also took the liberty of changing the name of the functions "first_path_sep" and "last_path_sep". Where I come from (and I'm apparently not alone given the former macro name PATHSEP), they should be called "first_dir_sep" and "last_dir_sep". The new function I introduced, that actually finds path separators, is now the "first_path_sep". The patch contains changes on all affected places of course. I also changed the documentation on dynamic_library_path to reflect the chagnes. Thomas Hallgren
* Remove pstrdup() call from exec.c because DLLIMPORT flag onBruce Momjian2004-05-24
| | | | | | | CurrentMemoryContext caused compile problems. Recode to not make a copy of the PATH but copy parts out into MAXPGPATH variables.
* Make validate_exec take a const char *, for gcc 3.4, which is moreBruce Momjian2004-05-24
| | | | strict.